package him.serviceimple;

import him.dao.EduBoardDAO;
import him.dao.JobDAO;
import him.daoimple.EduBoardDAOImple;
import him.daoimple.JobDAOImple;
import him.dto.gotjob.JobDTO;
import him.service.GotJobListService;

import java.util.List;

public class GotJobListServiceImple implements GotJobListService {
	private JobDAO JobDAO;
	private static GotJobListServiceImple gotJobListServiceImple;
	
	private GotJobListServiceImple(){
		JobDAO = new JobDAOImple();
	}
	public static GotJobListServiceImple getInstance(){
		if (gotJobListServiceImple==null) {
			gotJobListServiceImple = new GotJobListServiceImple();
		}
		
		return gotJobListServiceImple;
	}

	@Override
	public List<JobDTO> getGotJobAllList() {
		return JobDAO.getGotJobAllList();
	
	
	}

	@Override
	public List<JobDTO> getGotJobNowList() {
		return JobDAO.getGotJobNowList();
		
	}

	@Override
	public List<JobDTO> getGotJobList(JobDTO dto) {
		
		return JobDAO.getGotJobList(dto);
	}
	@Override
	public JobDTO getGotJob() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<JobDTO> getNoJobList(JobDTO dto) {
		// TODO Auto-generated method stub
		return JobDAO.getNoJobList(dto);
	}
	@Override
	public JobDTO getGotJobDetail(JobDTO dto) {
		
		return JobDAO.getGotJobDetail(dto);
	}
	public boolean insertGotJob(JobDTO dto) {
		return JobDAO.insertGotJob(dto);
		
		
	}
	@Override
	public List<JobDTO> getGotJobSch(JobDTO dto) {
		return JobDAO.getGotJobSch(dto);
	
	}

}
